/*
* Copyright (c)  2017, ueboot.com
* All rights reserved.
* 2017-11-22 13:59:59
*/
package com.ueboot.weishop.service.activity;

import com.ueboot.weishop.entity.activity.CrowResultEntity;
import com.ueboot.core.service.BaseService;

import java.util.List;

/**
 * Created by ziv.hung  on 2017-11-22 13:59:59.
 * @author ziv.hung
 * @since 2.0 by autocode
 */
public interface CrowResultService extends BaseService<CrowResultEntity> {

    /**
     *
     * @param activityCode
     * @param periodNum
     * @return
     */
    List<CrowResultEntity> findByActivityCodeAndPeriodNum(String activityCode,String periodNum);

    List<CrowResultEntity> findTop20ByLotteryOrderByOpenDateDesc(String lottery);

    List<CrowResultEntity>  findByIssueDms(Integer issueDms);

    Integer updateIssueDmsByIssueDms(Integer issueDmsNew, Integer issueDmsOld);
}
